<html>
<head><meta charset="utf-8"><title>build-override not applying to proc macros · t-cargo · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/index.html">t-cargo</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/build-override.20not.20applying.20to.20proc.20macros.html">build-override not applying to proc macros</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="234127152"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/build-override%20not%20applying%20to%20proc%20macros/near/234127152" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/build-override.20not.20applying.20to.20proc.20macros.html#234127152">(Apr 12 2021 at 09:15)</a>:</h4>
<p>It seems like the build-override setting in Cargo.toml doesn't apply to proc macros anymore. Was this an actual decision or is this a bug?</p>



<a name="234129279"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/246057-t-cargo/topic/build-override%20not%20applying%20to%20proc%20macros/near/234129279" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> CryZe <a href="https://rust-lang.github.io/zulip_archive/stream/246057-t-cargo/topic/build-override.20not.20applying.20to.20proc.20macros.html#234129279">(Apr 12 2021 at 09:34)</a>:</h4>
<p>Turns out it's simply <code>profile.dev.package."*"</code> that takes precedence over <code>profile.dev.build-override</code>, which seems pretty unfortunate. This means I can't compile my dependencies with a higher optimization level while not also making syn and co. compile really slowly (slower than a normal release build even), defeating almost the whole point of the feature.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>